@extends('backend.layouts.master')
@section('main')    
<!-- main content -->
<form method="post" class="form-horizontal" enctype="multipart/form-data">
<div id="content" class="span9">
      <div class="page-header">
        <h1><span class="icon-newspaper margin30"></span> Thêm thông báo</h1>
      </div>
      <div class="clearfix"></div>
      <div class="noidung">
      	<table id="table-article">
      		<tr>
      			<td width="15%">Tiêu đề<span class="require"> *</span></td>
      			<td width="35%" colspan="3" class="err"><input type="text" id="title" name="title" data-validation="required" style="width:400px"/></td> 				
      		</tr>
            <tr>
                <td>Ngày đăng<span class="require"> *</span></td>
                <td><input type="text" id="create" class='datepicker' name='create' value=''/></td>
            </tr>                                  
      		<tr>
      			<td colspan="4">
      				Nội dung<textarea id="content" name="content" class="ckeditor" rows="3"></textarea>
      			</td>
      		</tr>
      	</table>
      	<div id="div-footer">
      		<button type="submit" class="btn btn-primary" id="save">Thêm</button>
      		<a href="{{URL::to('admin/content')}}" class="btn btn-info">Cancel</a>
      	</div>
      </div>
</div> 
</form> 
<script type="text/javascript">
$(document).ready(function () {
    $(".datepicker").datepicker({
      dateFormat: 'yy-mm-dd'
    });
  });
</script>

@stop
<!-- end main content -->    